<?php


$action = getAction();

switch($action){
	case '':
		
		break;
}

function getAction(){
	if(isset($_POST['action']))
		$action = $_POST['action'];
	elseif(isset($_GET['action']))
		$action = $_GET['action'];
	else 
		$action = false;
	
	return $action;
}

?>